package design_pattern.builder;

public class BulderBungalow implements Builder {

  private Bungalow house = new Bungalow();

  @Override
  public void buildPart1() {
    house.setBricks(3000000);
    System.out.println("使用砖块数为30万块。");
  }

  @Override
  public void buildPart2() {
    house.setFloors(3);
    System.out.println("建了3层的楼房。");
  }

  @Override
  public void buildPart3() {
    house.setArea(200);
    System.out.println("建造面积为200平方。");
  }

  @Override
  public House getHouse() {
    return house;
  }

}
